package com.hy.${packageCode}.server.web.facade;

import com.hy.${packageCode}.server.common.dto.${classCode}DTO;
import com.hy.${packageCode}.server.common.facade.${classCode}Facade;
import com.hy.${packageCode}.server.core.service.${classCode}Service;
import com.hy.${packageCode}.shared.facade.AbstractFacadeImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping(${classCode}Facade.PREFIX)
public class ${classCode}FacadeImpl extends AbstractFacadeImpl implements ${classCode}Facade {

    @Autowired
    private ${classCode}Service ${objCode}Service;

    public ${classCode}DTO view(@PathVariable Long id) {
        return ${objCode}Service.detail(id);
    }
}
